$(function(){
    // 判断body的高度是否大于文档的高度
    var bodyH = $(window).height();
    var documentH = $(document.body).height();
    if(documentH < bodyH){
        $(".foot").addClass("foot-fixed");
    }

    'use strict';
    
    
        var $citypicker1 = $('#city-picker1');
    
        $citypicker1.citypicker();
    
        var $citypicker2 = $('#city-picker2');
    
        $citypicker2.citypicker({
            province: '江苏省',
            city: '常州市',
            district: '溧阳市'
        });
    
        var $citypicker3 = $('#city-picker3');
    
        $('#reset').click(function () {
            $citypicker3.citypicker('reset');
        });
    
        $('#destroy').click(function () {
            $citypicker3.citypicker('destroy');
        });
});